package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryDAO {
    List<Category> getCategoryList();

    Category getCategory(String categoryId);

    //新增
    void insertCategory(Category category);
    //删除
    void deleteCategory(String categoryId);
    //修改  oldCategoryId是指的修改前它的categoryId，不然不知道改数据库的哪一条
    void updateCategory(String oldCategoryId,Category category);
}
